#!/usr/bin/python
# -*- coding: UTF-8 -*-
import schedule
import time

def job():
    print("I'm working... [%s]" %(time.ctime()))
# 18:34:50
schedule.every(10).seconds.do(job)
schedule.every(1).minutes.do(job)
# schedule.every().hour.do(job)
# schedule.every().day.at("10:30").do(job)
# schedule.every(5).to(10).days.do(job)
# schedule.every().monday.do(job)
# schedule.every().wednesday.at("13:15").do(job)
# schedule.every().minute.at(":17").do(job)

while True:
    try:
        schedule.run_pending()
        time.sleep(1)
    except Exception as haha:
        print('Be terminated')